package com.zhenwei.zscm.mappings;

import com.zhenwei.zscm.entity.MenuEntity;
import com.zhenwei.zscm.model.dto.menu.FullMenuDTO;
import com.zhenwei.zscm.model.dto.menu.MenuDTO;
import com.zhenwei.zscm.model.vo.menu.MenuVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MenuMapping {
    MenuMapping INSTANCE = Mappers.getMapper(MenuMapping.class);
    MenuDTO entity2Dto(MenuEntity e);
    FullMenuDTO entity2FullDto(MenuEntity e);
    MenuEntity dto2Entity(MenuDTO dto);
    MenuEntity dto2Entity(FullMenuDTO dto);
    MenuEntity vo2Entity(MenuVO vo);
}
